package com.mfangsoft.zhuangjialong.integration.cardmanage.service.impl;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mfangsoft.zhuangjialong.common.model.Page;
import com.mfangsoft.zhuangjialong.integration.activity.model.BaseActivityInfo;
import com.mfangsoft.zhuangjialong.integration.cardmanage.mapper.BaseCardManageMapper;
import com.mfangsoft.zhuangjialong.integration.cardmanage.model.BaseCardConversion;
import com.mfangsoft.zhuangjialong.integration.cardmanage.model.BaseCardManage;
import com.mfangsoft.zhuangjialong.integration.cardmanage.model.BaseCardShop;
import com.mfangsoft.zhuangjialong.integration.cardmanage.service.CardManageService;
import com.mfangsoft.zhuangjialong.integration.commentactivity.mapper.BaseCommentActivityMapper;
import com.mfangsoft.zhuangjialong.integration.commentactivity.model.BaseCommentActivity;
import com.mfangsoft.zhuangjialong.integration.commentactivity.service.CommentActivityService;



@Service
public class CardManageServiceimpl implements CardManageService {
	
	
	private static final Logger LOGGER = LoggerFactory.getLogger(CardManageServiceimpl.class); 
	
	
	@Autowired
	private BaseCardManageMapper baseCardManageMapper;


	@Override
	public void addCardManage(BaseCardManage baseCardManage) {
		baseCardManageMapper.addCardManage(baseCardManage);
	}


	@Override
	public Page<BaseCardManage> selectBaseCardManage(Page<BaseCardManage> page) {

		page.setData(baseCardManageMapper.selectBaseCardManagePage(page));
		return page;
	}


	@Override
	public void addCardShop(BaseCardShop baseCardShop) {
		baseCardManageMapper.addCardShop(baseCardShop);
	}


	@Override
	public void addCardConversion(BaseCardConversion baseCardConversion) {
		baseCardManageMapper.addCardConversion(baseCardConversion);
	}


	@Override
	public void updateCardConversion(BaseCardConversion baseCardConversion) {
		baseCardManageMapper.updateCardConversion(baseCardConversion);
	}


	@Override
	public Page<BaseCardConversion> selectCardConversionPage(Page<BaseCardConversion> page) {
		page.setData(baseCardManageMapper.selectCardConversionPage(page));
		return page;
	}


	@Override
	public BaseCardManage selectCardManageOne(int id) {
		return baseCardManageMapper.selectCardManageOne(id);
	}


	@Override
	public void updateCardManageOne(BaseCardManage baseCardManage) {
		baseCardManageMapper.updateCardManageOne(baseCardManage);
	}


	@Override
	public void deleteCardManage(int id) {
		baseCardManageMapper.deleteCardManage(id);
	}


	@Override
	public int selectCardConversion(BaseCardConversion cc) {
		return baseCardManageMapper.selectCardConversion(cc);
	}


	


	
	



}
